package com.designmodel.struct.jdkdynamicproxy;

/**
 * 动态代理测试
 */
public class ProxyTest {

    public static void main(String[] args) {
        DynamicProxy proxy = new DynamicProxy();
        Sourceable bookProxy = (Sourceable) proxy.bind(new Source());
        bookProxy.addBook();
    }
}
